<?php
//use Phalcon\Di;

return array(
    '_id' => 'comment',
    '_form' => array(
        'method' => 'post',
        'ajax-submit' => '#main',
        'accept-charset' => 'utf-8',
        'role' => 'form',
        'class' => 'comment-form clearfix',
        'id' => 'comment-form',
    ),
    'body' => array(
        'widget' => 'Textarea',
        'baseField' => true,
        'configInit' => ',{customConfig:"/modules/ckeditor/config-base.js"}',
        'access' => array(
            'addForm' => true,
            'editForm' => true,
        ),
        'required' => true,
        'attributes' => array(
            'class' => 'form-control',
            'placeholder' => '当你的才华还撑不起你的野心时,那你就应该来评论下~~'
        ),
        'filter' => ['safeFilter'],
        'label' => '评论',
        'error' => '',
        'description' => '留下您的见解吧~',
    ),
    '_options' => array(
        'checkToken' => false,
        'validation' => true,
    ),
);
